const  express=require('express');
const app= express();
const router=require('./router');
const bodyParser = require('body-parser');
const cors =require('cors');

app.use(cors())//解决跨域问题
app.use(bodyParser.urlencoded({
  extended:true
}))
app.use('/api',router)

app.listen(3008,()=>{
  console.log('3008端口已经开启');
})